package com.atguigu.gulimall.order.to;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.entity.OrderItemEntity;
import lombok.Data;
import org.aspectj.weaver.ast.Or;

import java.math.BigDecimal;
import java.util.List;

/**
 * 创建订单返回封装
 */
@Data
public class OrderCreateTo {

    //订单
    private OrderEntity order;

    //订单项列表
    private List<OrderItemEntity> orderItems;

    //订单价格
    private BigDecimal payPrice;

    //运费
    private BigDecimal fare;
}
